#include <stdio.h>
#include <math.h>
int main(){
	int a,n;
	int sum = 0;
	int s = 0;
	scanf("%d %d",&a,&n);
	for(int i=1;i<=n;i++){
		for(int j=i;j<=i;j++){
			s=s+pow(10,j-1)*a;
		}
		sum = sum+s;
	}printf("s = %d",sum);
	return 0;
}
